package June;
import java.util.Scanner;
public class Test_4_1 {
    public static void main(String[] args) {
        //判断一个年份是否为闰年
        Scanner myScanner = new Scanner(System.in);
        System.out.print("请输入你想要判断的年份：");
        int year = myScanner.nextInt();
        if ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)) {
            System.out.println("是闰年");
        } else {
            System.out.println("不是闰年");
        }
    }
}
